package org.yjh.dao;

import org.apache.ibatis.annotations.*;
import org.yjh.pojo.Collections;

@Mapper
public interface CollectionDao {

    @Insert("insert into collections(uid,gid) values(#{uid},#{gid})")
    public void insetCollections(Collections c);

    @Delete("delete from collections where uid=#{uid} and gid=#{gid}")
    public void delCollections(Collections c);

    @Select("select * from collections where uid=#{uid} and gid=#{gid}")
    public Collections selectCollections(Collections c);

    @Select("select * from collections where  gid=#{gid}")
    public Collections selectCollectionsByGID(@Param("gid") int gid);
}
